import java.util.Scanner;

/**
 * 对输入的一个整数，按相反顺序输出该数。例如，输入为 3578
 */
public class ShuZiFanZhuan {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int read = sc.nextInt();
        StringBuilder builder = new StringBuilder(String.valueOf(read));
        System.out.println(builder.reverse());
    }
}
